package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Data
@TableName("app_message_notice")
public class AppMessageNotice extends Model<AppMessageNotice> {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 详情内容
     */
    @TableField("content")
    private String content;
    /**
     * 推送内容
     */
    @TableField("msg")
    private String msg;
    /**
     * 新增是否选择了推送
     */
    @TableField("is_push")
    private Integer isPush;

    /**
     * 等级 1-10 默认0
     */
    @TableField("level")
    private Integer level;


    /**
     * 是否审核 默认0 0:未审核 1:已审核
     */
    @TableField("is_check")
    private Integer isCheck;

    /**
     * 类型 接收类型 0 推送 1短信 2一起
     */
    @TableField("type")
    private Integer type;

    /**
     * 分类  0.消息通知 1.通知公告  2.短信推送管理推送
     */
    @TableField("category")
    private Integer category;
    /**
     * 发布者 默认0 0:系统公告 1.政府公告
     */
    @TableField("publisher")
    private Integer publisher;


    @TableField("create_time")
    private Date createTime;

    /**
     * 操作用户id
     */
    @TableField("operation_id")
    private Long operationId;

    @TableField("update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 是否删除
     */
    @TableField("is_del")
    private String isDel;
    /**
     * 机构编码
     */
    @TableField("company_code")
    private String companyCode;
    /**
     * 应用编码
     */
    @TableField("app_code")
    private String appCode;



    @Override
    public String toString() {
        return "AppMessageNotice{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", level=" + level +
                ", isCheck=" + isCheck +
                ", type=" + type +
                ", category=" + category +
                ", createTime=" + createTime +
                ", operationId=" + operationId +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                ", isDel='" + isDel + '\'' +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}